﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Actuals.CoreDomain.Business;
using Actuals.CoreDomain;
using Actuals.CoreDomain.Data;
using Actuals.Data;

namespace Actuals.Business
{
    public class BusinessTask : IBusinessTask
    {
        private IDalTask _dalTask;

         public BusinessTask(IDalTask dalTask)
        {
            _dalTask = dalTask;
        }

         public BusinessTask()
        {
            _dalTask = new DalTask();
        }

        public IList<ITask> GetTasks(int ProjectId, int ReleaseId)
        {
            IList<ITask> tasks = _dalTask.GetTasks(ProjectId, ReleaseId);

           
            return tasks;
        }

         public IList<ITask> GetDashBoardTasks(int projectId, int releaseId)
         {
             IList<ITask> tasks = _dalTask.GetDashBoardTasks(projectId, releaseId);


             return tasks;
         }  

        public ITask GetTask(int taskId)
        {
            return _dalTask.GetTask(taskId);
        }
        public int AddTask(ITask task)
        {
            return _dalTask.AddTask(task);
        }
        public int UpdateTask(ITask task)
        {
            return _dalTask.UpdateTask(task);
        }

        public bool DeleteTask(int taskId)
        {
            return _dalTask.DeleteTask(taskId);
        }
       
    }
}
